import request from '@/api/request';
import { apiClusterJava } from '@/api/root';

// 获取地区信息
export const getRegionList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionInfo/getRegionList',
    data
  );
};
export const getOneRegionAvgSalary = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionInfo/getOneRegionAvgSalary',
    data
  );
};
export const heatChange = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionInfo/heat',
    data
  );
};
export const positionTagAndParentList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionRel/positionTagAndParentList',
    data
  );
};
export const getStudentHotSearchList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/positionInfo/getStudentHotSearchList',
    data
  );
};
// 添加公众号订阅关联关系
export const addSubscribePersonTagRel = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/personSubscribe/addSubscribePersonTagRel',
    data
  );
};
// 获取用户职途公众号关注信息
export const getOfficailSubscribeInfo = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/personSubscribe/getOfficailSubscribeInfo',
    data
  );
};
